package du.zhaofeng2019;

import java.util.ArrayList;

public class InfoBean {

    private int _id;
    private String name;//姓名
    private String unit;//单位
    private String dept;//办公室，工作地点，工作房间

    private ArrayList<String> titles = new ArrayList<>();// 头衔:领导，行政，教师，职工等

    private ArrayList<String> officePhones = new ArrayList<>();//办公室电话
    private ArrayList<String> homePhones = new ArrayList<>();//宅电
    private ArrayList<String> mobilePhones = new ArrayList<>();//手机
    private ArrayList<String> addresses = new ArrayList<>();//住址


    private ArrayList<String> QQs = new ArrayList<>(); //  QQ
    private ArrayList<String> weixins = new ArrayList<>(); //  微信
    private ArrayList<String> emails = new ArrayList<>(); //   邮箱
    private ArrayList<String> teams = new ArrayList<>(); //   组属，团体


    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }


    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }


    public ArrayList<String> getTitles() {
        return titles;
    }

    public String getTitleString() {
        StringBuffer sb = new StringBuffer();
        if (titles != null && titles.size() > 0) {
            sb.append(titles.get(0));
            for (int i = 1; i < titles.size(); i++) {
                sb.append(" " + titles.get(i));
            }
        }
        return sb.toString();
    }

    public void setTitles(ArrayList<String> titles) {
        this.titles = titles;
    }


    public ArrayList<String> getOfficePhones() {
        return officePhones;
    }

    public String getOfficePhoneString() {
        StringBuffer sb = new StringBuffer();
        if (officePhones != null && officePhones.size() > 0) {
            sb.append(officePhones.get(0));
            for (int i = 1; i < officePhones.size(); i++) {
                sb.append(" " + officePhones.get(i));
            }
        }
        return sb.toString();
    }

    public void setOfficePhones(ArrayList<String> officePhones) {
        this.officePhones = officePhones;
    }


    public ArrayList<String> getHomePhones() {
        return homePhones;
    }

    public String getHomePhoneString() {
        StringBuffer sb = new StringBuffer();
        if (homePhones != null && homePhones.size() > 0) {
            sb.append(homePhones.get(0));
            for (int i = 1; i < homePhones.size(); i++) {
                sb.append(" " + homePhones.get(i));
            }
        }
        return sb.toString();
    }

    public void setHomePhones(ArrayList<String> homePhones) {
        this.homePhones = homePhones;
    }


    public ArrayList<String> getMobilePhones() {
        return mobilePhones;
    }

    public String getMobilePhoneString() {
        StringBuffer sb = new StringBuffer();
        if (mobilePhones != null && mobilePhones.size() > 0) {
            sb.append(mobilePhones.get(0));
            for (int i = 1; i < mobilePhones.size(); i++) {
                sb.append(" " + mobilePhones.get(i));
            }
        }
        return sb.toString();
    }

    public void setMobilePhones(ArrayList<String> mobilePhones) {
        this.mobilePhones = mobilePhones;
    }


    public ArrayList<String> getAddresses() {
        return addresses;
    }

    public String getAddressString() {
        StringBuffer sb = new StringBuffer();
        if (addresses != null && addresses.size() > 0) {
            sb.append(addresses.get(0));
            for (int i = 1; i < addresses.size(); i++) {
                sb.append(" " + addresses.get(i));
            }
        }
        return sb.toString();
    }

    public void setAddresses(ArrayList<String> addresses) {
        this.addresses = addresses;
    }


    public ArrayList<String> getQQs() {
        return QQs;
    }

    public String getQQString() {
        StringBuffer sb = new StringBuffer();
        if (QQs != null && QQs.size() > 0) {
            sb.append(QQs.get(0));
            for (int i = 1; i < QQs.size(); i++) {
                sb.append(" " + QQs.get(i));
            }
        }
        return sb.toString();
    }

    public void setQQs(ArrayList<String> QQs) {
        this.QQs = QQs;
    }


    public ArrayList<String> getWeixins() {
        return weixins;
    }

    public String getWeixinString() {
        StringBuffer sb = new StringBuffer();
        if (weixins != null && weixins.size() > 0) {
            sb.append(weixins.get(0));
            for (int i = 1; i < weixins.size(); i++) {
                sb.append(" " + weixins.get(i));
            }
        }
        return sb.toString();
    }

    public void setWeixins(ArrayList<String> weixins) {
        this.weixins = weixins;
    }


    public ArrayList<String> getEmails() {
        return emails;
    }

    public String getEmailString() {
        StringBuffer sb = new StringBuffer();
        if (emails != null && emails.size() > 0) {
            sb.append(emails.get(0));
            for (int i = 1; i < emails.size(); i++) {
                sb.append(" " + emails.get(i));
            }
        }
        return sb.toString();
    }

    public void setEmails(ArrayList<String> emails) {
        this.emails = emails;
    }


    public ArrayList<String> getTeams() {
        return teams;
    }

    public String getTeamString() {
        StringBuffer sb = new StringBuffer();
        if (teams != null && teams.size() > 0) {
            sb.append(teams.get(0));
            for (int i = 1; i < teams.size(); i++) {
                sb.append(" " + teams.get(i));
            }
        }
        return sb.toString();
    }

    public void setTeams(ArrayList<String> teams) {
        this.teams = teams;
    }


}
